package com.example.child_protection.dto.request.update;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.dto.base.BaseUpdateRequestDTO;
import com.example.child_protection.enums.SexEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 用户信息修改请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class UserUpdatePwdRequestDTO extends BaseUpdateRequestDTO {

    /**
     * 原密码
     *
     * @mbggenerated
     */
    @ApiParam( required = true ,value = "旧密码")
    @NotNull
    private String oldPwd;

    /**
     * 新密码
     *
     * @mbggenerated
     */
    @ApiParam( required = true ,value = "新密码")
    @NotNull
    private String newPwd;

    public void valid(){

        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
